package com.sh.data.engine.common.enumDefinition;

/**
 * @author tinglan.ys
 * @description:
 * @date 2022/8/12 下午3:32
 */
public enum MenuEnumNew {
    /**
     * 新版菜单——敏捷版和主数据混合在一起
     */
    GFSJ(1L, "规范设计"),
    SJDY(2L, "数据调研"),
    SJGL(3L, "数据管理"),
    ZTSJ(4L, "主题设计"),
    BZSJ(5L, "标准设计"),
    BJDY(6L, "标准定义"),
    MXYS(7L, "模型映射"),
    MXSJ(8L, "模型设计"),
    TYMX(9L, "贴源模型"),
    GGMX(10L, "公共模型"),
    YYMX(11L, "应用模型"),
    QTMX(12L, "其他模型"),
    ZBSJ(13L, "指标设计"),
    ZBDY(14L, "指标定义"),
    SJJC(15L, "数据集成"),
    LXTB(16L, "离线同步"),
    RWGL1(17L, "任务管理"),
    RWYW(18L, "任务运维"),
    SSTB(19L, "实时同步"),
    WJCJ(20L, "文件采集"),
    JKCJ(21L, "接口采集"),
    HTHS(22L, "Http/Https"),
    WEBS(23L, "WebService"),
    SJKF(24L, "数据开发"),
    LXJS(25L, "离线计算"),
    ZYKF1(26L, "作业开发"),
    GZLC(27L, "工作流程"),
    ZYGL1(28L, "资源管理"),
    HSGL1(29L, "函数管理"),
    RWYW1(30L, "任务运维"),
    SSJS(31L, "实时计算"),
    SSKF(32L, "实时开发"),
    ZYGL2(33L, "资源管理"),
    HSGL2(34L, "函数管理"),
    RWYW2(35L, "任务运维"),
    ZBGL(36L, "指标管理"),
    SJZL(37L, "数据质量"),
    ZLGL(38L, "概览"),
    JKGZ(39L, "监控规则"),
    RWGL2(40L, "任务管理"),
    SJFW(41L, "数据服务"),
    FWGL(42L, "概览"),
    APISC(43L, "API市场"),
    APIGL(44L, "API管理"),
    WDAPI(45L, "我的API"),
    WDSQ(46L, "我的申请"),
    APIDY(47L, "API调用"),
    KJGL(48L, "空间管理"),
    KJCY(49L, "空间成员"),
    ZYKF2(50L, "空间角色");


    private Long id;
    private String name;

    MenuEnumNew(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    /**
     * 根据name得到id
     *
     * @param name
     * @return
     */
    public static Long getIdByName(String name) {
        for (MenuEnumNew value : MenuEnumNew.values()) {
            if (value.getName().equals(name)) {
                return value.getId();
            }
        }
        return null;
    }
}
